<?php
	require_once('http://94.212.55.57/vlieg2/classes/settings.class.php');
	require_once('http://94.212.55.57/vlieg2/classes/search.class.php');
	require_once('http://94.212.55.57/vlieg2/classes/tickets.class.php');
	require_once('http://94.212.55.57/vlieg2/classes/resultHandler.class.php');
	require_once('http://94.212.55.57/vlieg2/classes/filter.class.php');
	
	
	$search = new Search($_GET['deptCity'],
									 $_GET['arrCity'],
									 $_GET['deptDate'],
									 $_GET['retDate'],
									 $_GET['adults'],
									 $_GET['children'],
									 $_GET['infants'],
									 $_GET['retour']);
	
	
	$resultHandler = new resultHandler($search);
	
	
	if(isset($_GET['page'])){
		 $results =  $resultHandler->displayResults($_GET['page']);
		 require_once('page.php');
	}
	
	
?>